package com.jsz.dao;

import com.jsz.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //通过预约日期查询是否已经保存了数据
    long findCountByOrderDate(Date orderDate);

    //添加需要保存的预约设置信息
    void add(OrderSetting orderSetting);

    //根据月份查询预约
    List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);

    //根据用户传入的日期查询
    OrderSetting findByOrderDate(Date orderDate);

    //修改已经保存过的数据
    void updateNumberByOrderDate(OrderSetting orderSetting);

    //更新已预约人数
    void updateReservationsByOrderDate(OrderSetting orderSetting);
}
